package com.tuanzi.loan.web.lazy.galaxycard;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.galaxycard.GalaxyCardAppPromoteStatService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.galaxycard.GalaxyCardAppPromoteStatRequest;
import com.tuanzi.loan.vo.response.galaxycard.GalaxyCardAppPromoteStatResponse;

public class GalaxyCardAppPromoteStatLazyDataModel extends BaseLazyDataModel<GalaxyCardAppPromoteStatRequest, GalaxyCardAppPromoteStatResponse> {
	

	private static final long serialVersionUID = 6230914448377812089L;
	
	private GalaxyCardAppPromoteStatService galaxyCardAppPromoteStatService = SpringContextHolder.getBean(GalaxyCardAppPromoteStatService.class);
	
	public GalaxyCardAppPromoteStatLazyDataModel(
			GalaxyCardAppPromoteStatRequest searchRequest) {
		super(searchRequest);
	}
	@Override
	protected Page<GalaxyCardAppPromoteStatResponse> doLoad(
			PageSearcher<GalaxyCardAppPromoteStatRequest> pageSearcher) {
		return galaxyCardAppPromoteStatService.list(pageSearcher);
	}

}
